package com.macken.zjh.screens;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL10;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.scenes.scene2d.ui.Image;
import com.badlogic.gdx.scenes.scene2d.utils.TextureRegionDrawable;
import com.macken.zjh.Zjh;

public class LoadScreen extends BaseScreen {

	Stage stage;
	Image bg;

	public LoadScreen(Zjh game) {
		super(game);
	}

	public void show() {
		TextureRegion trbg = load("menubg.png", 800, 480);
		bg = new Image(new TextureRegionDrawable(trbg));

		stage = new Stage(WIDTH, HEIGHT, false);
		stage.addActor(bg);
		Gdx.input.setInputProcessor(stage);
	}

	@Override
	public void render(float delta) {
		Gdx.gl.glClearColor(0.1f, 0.1f, 0.1f, 1);
		Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
		loaddata();
		stage.act(delta);
		stage.draw();
		
	}

	public void loaddata() {

	}

}
